import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:sleep/blue/check_premission.dart';

import 'package:sleep/db/sql_manger.dart';
import 'package:sleep/server/api.dart';

final configProvider = FutureProvider((ref) async {
  await SQLManger.share().init();
  await CheckPermission.check();
  final status = await Server.share().getState();
  return status;
});
